package top.mcwebsite.playandroid.lib.task

import java.util.Comparator
import java.util.Queue

internal class TaskNode(val task: Task) : Comparable<TaskNode> {
    var state: TaskState = TaskState.READY
    var nextTasks: Queue<TaskNode>? = null

    override fun compareTo(other: TaskNode): Int {
        return other.task.priority - this.task.priority
    }
}